import type { PropsWithChildren, ReactNode } from 'react'

import { MainLayout } from '@/components/MainLayout'

interface ILayout {
	modals: ReactNode
}

export default function DashboardLayout({
	children,
	modals
}: PropsWithChildren<ILayout>) {
	return (
		<MainLayout>
			{children}
			{modals}
		</MainLayout>
	)
}
